package se.statifyme.server.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import se.statifyme.server.declaration.ItemField;
import se.statifyme.server.declaration.ItemType;


@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Entity
@ItemType(displayName = "Key-value")
public class KeyValueRecord extends Record {

	@Basic(optional = false)
	@ItemField(displayName = "Key")
	private String key;

	@Basic(optional = false)
	@ItemField(displayName = "Value")
	private String value;
	
	public String getKey() {
		return key;
	}
	
	public void setKey(String key) {
		this.key = key;
	}
	
	public String getValue() {
		return value;
	}
	
	public void setValue(String value) {
		this.value = value;
	}
}
